package cn.com.shopec.erp.common.constant;

public class ProductSCMConstant {
	
	/** 次品处理(1.退货) **/
	public static final int DEALWITH_RETURNS = 1;
	/** 次品处理(2.换货) **/
	public static final int DEALWITH_REPLACEMENT = 2;
	/** 次品处理(3.其他) **/
	public static final int DEALWITH_OTHER = 3;
	
	/** 入库方式(1.采购) **/
	public static final int STORAGEMETHODS_PURCHASE = 1;
	/** 入库方式(2.销售退货入库) **/
	public static final int STORAGEMETHODS_STORAGE = 2;
	/**入库方式(3.其他)**/
	public static final int STORAGEMETHODS_OTHER = 3;
	/**入库方式(4.无法修复)**/
	public static final int STORAGEMETHODS_UNDO = 4;
	
	/**处理状态(0.未审核)**/
	public static final int STORAGE_STATE_UNADUIT = 0;
	/**处理状态(1.已审核)**/
	public static final int STORAGE_STATE_ADUITED = 1;
	/**处理状态(1.已完成(入库))**/
	public static final int STORAGE_STATE_STORAGE = 2;
	/*****************************次品退换货******************************/
	
	/** 业务类型 (1.退货)**/
	public static final int REPLCETYPE_RETURNS = 1;
	/** 业务类型 (2.换货)**/
	public static final int REPLCETYPE_REPLACEMENT = 2;
	
	/****采购单**/
	
	
	
	/**上次审核结果(1.通过)**/
	public static Integer LASTAUDITRESULT_OK = 1;
	/** 上次审核结果 (-1：不通过) **/
	public static Integer LASTAUDITRESULT_NO = -1;
	
	/**订货单配送状态：1、未预约**/
	public static int DISPATCHINGSTATUS_ONE = 1;
	
	/** 审核状态( 0审核不通过，1审核通过,2.入库完成)**/
	
	public static final int AUDITRESULT_ZERO = 0;
	
	public static final int AUDITRESULT_ONE = 1;
	
	public static final int AUDITRESULT_TWO = 2;
	
	/**采购单状态 0.待审核**/
	public static final int PO_STATUS_ONE = 0;
	/**采购单状态 1.已审核**/
	public static final int PO_STATUS_TWO = 1;
	/**采购单状态2.采购中**/
	public static final int PO_STATUS_THREE = 2;
	/**采购单状态3.入库中**/
	public static final int PO_STATUS_FOUR = 3;
	/**采购单状态4.部分入库**/
	public static final int PO_STATUS_FIVE = 4;
	/**采购单状态5.采购完成**/
	public static final int PO_STATUS_SEX = 5;
	/**采购单状态6.已生成入库单**/
	public static final int PO_STATUS_SEVEN = 6;
	
	/****采购单**/
	
	/**带采购主管审核**/
	public static final int PURCHASERETURN_CURAUDIT = 1;
	
	/**审核成功**/
	public static final int PURCHASERETURN_CURAUDIT_SUCCESS = 99;
	
	/***已入库标志**/
	public static final Integer STATUS = 4;
	
	/***次品退货**/
	public static final Integer StorageState_DEFECT = 1;
	
	/***出库中**/
	public static final int PURCHASERETURN_STATUS_TWO = 2;
	
	/***出库完成**/
	public static final int PURCHASERETURN_STATUS_THREE = 3;
	
	/***待换货入库**/
	public static final int PURCHASERETURN_STATUS_FOUR = 4;
	
	/**入库中**/
	public static final int PURCHASERETURN_STATUS_FIVE = 5;
	
	/**入库完成**/
	public static final int PURCHASERETURN_STATUS_SIX = 6;
	
	/**采购退货**/
	public static final int PUR_RETURN_TYPE_ONE = 1;
	
	/**采购换货**/
	public static final int PUR_RETURN_TYPE_TWO = 2;
	
	
	/**出库完成标志**/
	public static final int PURCHASE_RETURN_STATUS = 3;
	
	/**等待生成出库单标志**/
	public static final String  DEFECTREPLCE_STATE_0 = "1";
	/**生成出库单标志**/
	public static final String  DEFECTREPLCE_STATE_1 = "2";
	/**退货出库完成标志**/
	public static final String  DEFECTREPLCE_STATE_2 = "3";
	/**等待生成换货入库单标志**/
	public static final String  DEFECTREPLCE_STATE_3 = "4";
	/**生成换货入库单标志**/
	public static final String  DEFECTREPLCE_STATE_4 = "5";
	/**完成换货入库单标志**/
	public static final String  DEFECTREPLCE_STATE_5 = "6";
	
	/**采购单货品库存关系**/
	
	/**没有生产退货单状态**/
	public static final Integer SOCK_STATUS = 0;
	
	/**生产退货单状态**/
	public static final Integer SOCK_PURCHSE_STATUS= 1;
	
	/**生产退货单状态**/
	public static final Integer STORAGE_STATE_DEFECTRELCE= 2;
	
	/**商品入库常量**/
	
	/**实库**/
	public static final String SALETYPE_REALLIBRARY = "实库";
	public static final Integer INVENTORYTYPE_REALLIBRARY = 1;
	
	/**虚库**/
    public static final String SALETYPE_VIRTUALLIBRARY = "虚库";
    public static final Integer INVENTORYTYPE_VIRTUALLIBRARY = 2;
    
    /**商品类型**/
    public static final String COMMODITYTYPE = "实体商品";
    public static final Integer COMMODITYTYPE_NO = 0;
    public static final String COMMODITYTYPE_VIRTUAL = "虚拟商品";
    public static final Integer COMMODITYTYPE_VIRTUAL_NO = 3;
    
    /**销售类型**/
    public static final String COMMODITY_SALETYPE = "购销";
    public static final Integer COMMODITY_SALETYPE_No = 1;
    
    
    /**采购退货同步锁**/
    public static final int PURCHASERETURN_STATUS_FIRST= 0;
    
    /**商品导入发货为1**/
    public static final String ISSUPDELIVERYFIRST = "是";
    public static final Integer ISSUPDELIVERY_FIRST = 1;
    
    /**商品导入不发货为0**/
    public static final String ISSUPDELIVERYZEON = "否";
    public static final Integer ISSUPDELIVERY_ZEON = 0;
    
    /**商品导入默认可退货**/
    public static final Integer ISRETURNED_GOOS = 1;
    
    /**采购单实体退货装填锁 1退货中*/
    public static final Integer PURCHASE_RETURN_STATUS_FIRST = 1;
    /**采购单实体退货装填锁 0可退货*/
    public static final Integer PURCHASE_RETURN_STATUS_ZERO = 0;
    
    /**创建盘点初始值1**/
    public static final Integer INVENTORY_CHECK_CREATE = 1;
    /**判断为系统数据**/
    public static final Integer IS_SYS_DATA = 1;
    /**判断不为系统数据**/
    public static final Integer I_SYS_DATA = 0;
	
}